<template>
  <div class="insurance-page">
    <!-- 顶部保险横幅 -->
    <div class="insurance-banner">
      <div class="banner-content">
        <h1 class="banner-title">宠物医保</h1>
        <p class="banner-subtitle">0元起赔 全病种可赔</p>
        <div class="price-section">
          <span class="price">￥278/年</span>
          <button class="insure-btn">去投保</button>
        </div>
      </div>
    </div>

    <!-- 我的保险专区 -->
    <div class="my-insurance-section">
      <div class="section-content">
        <h3 class="section-title">给毛孩子上个保障</h3>
        <p class="section-desc">进入我的保险专区</p>
      </div>
    </div>

    <!-- 分割线 -->
    <div class="divider"></div>

    <!-- 误伤赔偿保障 -->
    <div class="damage-compensation">
      <h3 class="damage-title">误伤赔偿保障</h3>
      
      <!-- 保险产品列表 -->
      <div class="insurance-list">
        <div class="insurance-item">
          <div class="insurance-info">
            <h4 class="insurance-name">宠物三费险</h4>
            <p class="insurance-price-range">￥30/50/100/元</p>
          </div>
          <button class="claim-btn">领取</button>
        </div>

        <div class="insurance-item">
          <div class="insurance-info">
            <h4 class="insurance-name">宠物第三者责任险实…</h4>
            <p class="insurance-price">39.00元</p>
          </div>
        </div>

        <div class="insurance-item">
          <div class="insurance-info">
            <h4 class="insurance-name">宠物三费险</h4>
            <p class="insurance-price-range">￥30/50/100/元</p>
          </div>
          <button class="claim-btn">领取</button>
        </div>

        <div class="insurance-item">
          <div class="insurance-info">
            <h4 class="insurance-name">宠物第三者责任险升…</h4>
            <p class="insurance-price">59.00元</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// 这里可以添加数据逻辑
</script>

<style scoped>
.insurance-page {
  padding: 16px;
  background: #f5f5f5;
  min-height: calc(100vh - 140px);
}

/* 保险横幅 */
.insurance-banner {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  color: white;
}

.banner-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.banner-subtitle {
  font-size: 14px;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 20px;
  font-weight: bold;
}

.insure-btn {
  background: white;
  color: #4CAF50;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 我的保险专区 */
.my-insurance-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.section-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* 分割线 */
.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}

/* 误伤赔偿保障 */
.damage-compensation {
  background: white;
  border-radius: 12px;
  padding: 16px;
}

.damage-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.insurance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insurance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.insurance-item:last-child {
  border-bottom: none;
}

.insurance-info {
  flex: 1;
}

.insurance-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.insurance-price-range {
  font-size: 14px;
  color: #ff4444;
  font-weight: 600;
  margin: 0;
}

.insurance-price {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  margin: 0;
}

.claim-btn {
  background: #ffcc00;
  color: #333;
  border: none;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
</style>